package com.qf.pojo;

import java.util.Set;

public class Role {

    private Integer id;

    private String name;

    // 维护角色和权限的多对多关系
    private Set<Perm> permsSet;


    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", permsSet=" + permsSet +
                '}';
    }

    public Role() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Perm> getPermsSet() {
        return permsSet;
    }

    public void setPermsSet(Set<Perm> permsSet) {
        this.permsSet = permsSet;
    }
}
